using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace umbSearch.businessLogic
{
    public class Alerts
    {
        public Alerts() {
        }

        public static void Alert(string message)
        {
            if (Settings.AlertUser != null) {
                umbraco.library.SendMail(
                    Settings.AlertUser.Email,
                    Settings.AlertUser.Email,
                    "[umbraco] Alert from search index",
                    message,
                    false);
            }

        }
    }
}
